trigger Takila on Opportunity (after insert, after update) {
	List<Id> idList = new List<id>();
	Map<Id , OpportunityLineItem> OppToOppLineItemMap = new Map<id ,OpportunityLineItem>();
	Set<Id> pbeIds = new Set<Id>();
	
	for(Opportunity opp : Trigger.new){
		idList.add(opp.id);	
	}

	List<OpportunityLineItem> opplmList = new List<OpportunityLineItem>([Select o.UnitPrice, o.TotalPrice, o.SystemModstamp, o.SortOrder, 
											o.ServiceDate, o.Quantity, o.PricebookEntryId, o.OpportunityId, o.ListPrice, o.Id From OpportunityLineItem o
											 where OpportunityId IN : idList]);

	
    for (OpportunityLineItem oli : opplmList){ 
        pbeIds.add(oli.pricebookentryid);
    }

    Map<Id, PricebookEntry> entries = new Map<Id, PricebookEntry>(
        	[select UnitPrice from pricebookentry 
         	where id in :pbeIds]);     
	
	for(OpportunityLineItem opplm : opplmList){
		OppToOppLineItemMap.put(opplm.OpportunityId , opplm);
	}
	
	for(Opportunity opp : Trigger.new){
		if(OppToOppLineItemMap.containsKey(opp.id)){
			//opp.tc_curruncy__c = 
			//OpportunityLineItem opplm = new OpportunityLineItem();
			
		}
		
		//Opportunity.tc_curruncy__c 
	}	
}